﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MyNanny
{
    class Program
    {
        static void Main(string[] args)
        {
            /*
             * Tests the result of parsing 
             */
            MyNanny.DomainsList domainList = new DomainsList();
            Console.WriteLine("Reading from {0}",domainList.HostsFile);
            domainList.ForEach(delegate(Domain domain){
                if(! domain.IsComment)
                    Console.WriteLine("Domain [{0}] assigned to [{1}] but {2}",domain.Host, domain.IP, domain.Enabled ? "enabled":"disabled");
            });
            Console.ReadKey();
            
        }
    }
}
